<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<div class="layout">
    <img src="<html:rewrite page='/icons/node-32x32.png'/>"/><span class="node-name"><beans:write name="node" property="name"/></span>
    <logic:iterate name="nodeHistory" property="transactions" id="transaction">
        <p class="history"><span class="history-date">
            <b><beans:write name="transaction" property="type"/></b>
            <beans:write name="transaction" property="date" format="yyyy-MM-dd HH:mm:ss"/>
            <beans:write name="transaction" property="person"/>:<beans:write name="transaction" property="user"/>
        </span><br/>
        <span class="history-text">
            <logic:iterate name="transaction" property="rows" id="row">
                <span class="history-label"><beans:write name="row" property="name"/>:</span>
                <logic:equal name="row" property="value" value="">
                    <i>blank</i>
                </logic:equal>
                <logic:notEqual name="row" property="value" value="">
                    <velocityme:markup><beans:write name="row" property="value"/></velocityme:markup>
                </logic:notEqual>
                <br/>
            </logic:iterate>
            <logic:present name="transaction" property="fileAttachmentValue">
                <b>Attachment:</b>
                <html:link action="attachment.do" paramId="name" paramName="transaction" paramProperty="fileAttachmentValue.serverName" target = "#xyz">
                    <beans:write name="transaction" property="fileAttachmentValue.name"/>
                </html:link>
            </logic:present>
        </span></p>
    </logic:iterate>
</div>
